import request from '@/utils/request'

// 查询渠道列表
export function listPlatformChannel(query) {
  return request({
    url: '/genius/platform-channel/list',
    method: 'get',
    params: query
  })
}

// 查询渠道详细
export function getPlatformChannel(id) {
  return request({
    url: '/genius/platform-channel/' + id,
    method: 'get'
  })
}

// 新增渠道
export function addPlatformChannel(data) {
  return request({
    url: '/genius/platform-channel',
    method: 'post',
    data: data
  })
}

// 修改渠道
export function updatePlatformChannel(data) {
  return request({
    url: '/genius/platform-channel',
    method: 'put',
    data: data
  })
}

// 删除渠道
export function delPlatformChannel(id) {
  return request({
    url: '/genius/platform-channel/' + id,
    method: 'delete'
  })
}

// 逻辑删除渠道
export function removedPlatformChannel(id) {
  return request({
    url: '/genius/platform-channel/' + id,
    method: 'delete'
  })
}
